<?php

defined( 'PDNS_AUTH' ) or die( "Unauthorized" );

class zonesModel extends Model{
	
	public $zones;

	function __construct(){
		$db = DB::getInstance();
		
		$query = 'SELECT id, name FROM domains ORDER BY name';

		$this->zones = $db->fetch_objects( $query );
	}
}
